import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by lenovo on 2017/4/17.
 */
public class test {
    public static  void main(String args[]){
        String str="baike.xsoftlab.net";
        String regEx ="baike.*";
        Pattern pattern =  Pattern  .compile(regEx);
        Matcher matcher = pattern .matcher(str);
        boolean rs = matcher.find();
        System.out.println(rs);


    }

    }
